package com.matt.domain.courseV2;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 模板
 */
@Entity
@EqualsAndHashCode(callSuper = true)
@Table(name = "tc_vendor_course_template")
@Data
public class VendorCourseTemplate extends Domain implements Serializable {
    private static final long serialVersionUID = 1L;

    //模板内容，用来存放一段 JSON，用以描述字段名称。
    //[{"name":"教学目标"，"type":"text"}, {"name":"教学内容", "type":"richtext"}, {"name":"扩展资源", "type":"attachments"}]
    //[{"name":"引起动机"，"type":"text"}, {"name":"主体活动", "type":"richtext"}, {"name":"反馈活动", "type":"attachments"}]
    @Column(name = "template", nullable = false)
    private String template;

    @Column(name = "type", nullable = false)
    private Integer type = 0;

    @Column(name = "vendor_id", nullable = false)
    private String vendorId;

    @Column(name = "title", nullable = false)
    private String title;

    
}